/* 基础样式 */
.productdetailcontainer {
  background-color: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 60px;
}

.productcontent {
  padding-bottom: 20px;
}
.header {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  padding: 4px 4px;
  margin-left: 3px;
  margin-top: 5px;
  cursor: pointer;
  position: absolute;
  top: -2px;
  z-index: 999;
  background: white;
  border-radius: 25px;
}
.header img {
  width: 14px;
  height: 14px;
}
/* 商品图片 */
.productimagecontainer {
  width: 100%;
  height: 375px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.productimage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 商品信息 */
.productinfosection {
  background-color: #fff;
  padding: 15px;
  margin-bottom: 10px;
}

.producttitle {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.pointssection {
  margin-bottom: 12px;
}

.currentpoints {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  justify-content: right;
}

.pointsicon {
  color: #ff6a00;
  font-size: 16px;
  margin-right: 5px;
}

.pointsvalue {
  color: #ff6a00;
  font-size: 24px;
  font-weight: bold;
  margin-right: 10px;
}

.originalpoints {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
}

.metainfo {
  display: flex;
  color: #666;
  font-size: 13px;
}

.meta-info span {
  margin-right: 15px;
}

.promotags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.promotag {
  background-color: #fff8e6;
  color: #ff6a00;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 3px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.servicetags {
  width: 100%;
  height: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 17px;
  color: #adabab;
}

.servicetags span {
  margin-right: 12px;
  margin-bottom: 5px;
}

/* 商品描述 */
.descriptionsection {
  width: 100%;
  margin-bottom: 10px;
}
.descriptionsection img {
  width: 100%;
  height: 235px;
}

/* 商品评价 */
.reviewssection {
  background-color: #fff;
  padding: 15px;
}

.sectionheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.reviewcount {
  color: #999;
  font-size: 14px;
}

.reviewitem {
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
}

.userinfo {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.useravatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #eee;
  margin-right: 10px;
}

.username {
  color: #666;
  font-size: 14px;
}

.reviewcontent {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.reviewspec {
  color: #999;
  font-size: 13px;
}

/* 底部操作栏 */
/* 底部操作栏 - 精准还原版 */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #fff;
  display: flex;
  align-items: center;
  border-top: 1px solid #eee;
  z-index: 100;
  padding: 0 10px;
  box-sizing: border-box;
}

.footerbtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
}

.footerbtn .icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.footerbtn img {
  width: 20px;
  height: 20px;
}

/* 立即兑换按钮 */
.exchangebtn {
  flex: 2;
  height: 40px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  background-color: #ff6a00;
  color: white;
  border: none;
  margin-left: 12px;
  box-shadow: 0 2px 4px rgba(255, 106, 0, 0.3);
  transition: all 0.2s;
}

.exchangebtn:active {
  background-color: #e05d00;
  transform: scale(0.98);
}

/* 兑换弹窗 */
/* 兑换弹窗 - 底部定位版本 */
/* 兑换弹窗 - 带遮罩层版本 */
.popupoverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.popupcontent {
  background-color: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.closebtn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border: none;
  background-color: transparent;
  font-size: 20px;
  color: #999;
  z-index: 10;
}

.popupheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 8px;
}

.popupheader h3 {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.userpoints {
  color: #999;
  font-size: 14px;
}

/* 商品信息区域 */
.productinfopopup {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
}

.popupimage {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-right: 12px;
  border: 1px solid #f0f0f0;
  object-fit: cover;
}

.productdetails {
  flex: 1;
}

.producttitlepopup {
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
  line-height: 1.4;
}

.pointspopup {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.pointsvaluepopup {
  color: #ff0000;
  font-size: 18px;
  font-weight: bold;
  margin-right: 8px;
}

.originalpointspopup {
  color: #999;
  font-size: 12px;
  text-decoration: line-through;
}

/* 数量选择器 */
.quantityselector {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantityselector .label {
  font-size: 14px;
  color: #666;
}

.quantitycontrol {
  display: flex;
  align-items: center;
}

.quantitybtn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 25px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  padding: 0;
}

.quantitybtn.disabled {
  color: #ccc;
  border-color: #eee;
  background-color: #f9f9f9;
}

.quantityvalue {
  width: 40px;
  text-align: center;
  font-size: 15px;
  margin: 0 8px;
}

/* 选项选择器 */
.optionselector {
  margin: 16px 0;
}

.optionselector .label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.optionbtn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 15px;
  font-size: 13px;
  color: #333;
  min-width: 60px;
  text-align: center;
}

.optionbtn.selected {
  border-color: #ff6a00;
  color: #ff6a00;
  background-color: #fff8f0;
}

/* 合计区域 */
.totalsection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 16px;
  font-size: 16px;
}

.totalpoints {
  color: #ff0000;
  font-size: 15px;
  font-weight: bold;
}

/* 确认按钮 */
.confirmbtn {
  height: 40px;
  width: 100%;
  background: #ff0000;
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.confirmbtn:active {
  background-color: #e05d00;
}
/* 加载状态 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 16px;
  color: #666;
}
.promotionSection {
  margin-bottom: 0px;
  margin-top: 18px;
  border-bottom: #cfc4c4 1.8px solid;
  height: 55px;
  width: 96%;
  margin-left: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.promotionItem {
  margin-right: 8px;
  margin-top: 10px;
  color: #000;
  font-size: 12px;
  /* 删除边框样式 */
}
.tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #000;
  border-radius: 4px;
}
.guaranteeSection {
  width: 96%;
  margin-left: 2%;
  display: flex;
  height: 30px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.detailTitlebig {
  width: 98%;
  margin-left: 1%;
  border-bottom: 1px #cfc4c4 solid;
}
.detailTitle {
  width: 96%;
  margin-left: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px #cfc4c4 solid;
}
.detailTitles {
  width: 96%;
  margin-left: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guaranteeItem {
  margin-top: 10px;
  font-size: 12px;
  padding: 2px;
  color: #666;
  text-align: center;
  display: flex;
}
.shopcolor {
  /* width: 96%;
  margin-left: 2%; */
  height: 45.5px;
  display: flex;
  align-items: center;
}
.detailSection {
  background-color: #fff;
  height: 91px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 22px;
}
.detailTitlebig {
  width: 98%;
  margin-left: 1%;
  border-bottom: 1px #cfc4c4 solid;
}
.detailTitle {
  width: 96%;
  margin-left: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px #cfc4c4 solid;
}
.detailTitles {
  width: 96%;
  margin-left: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shopcolor {
  height: 45.5px;
  display: flex;
  align-items: center;
}